<!--/*--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link id="mastercss" rel="stylesheet" href="images/style.css" type="text/css" media="screen"/>
    <script src="include/js/common.js" type="text/javascript"></script>
</head>
<body><!--*/-->
<!--{&header,${title!},内容管理&nbsp;&raquo;&nbsp;站点管理&nbsp;&raquo;&nbsp;管理站点}-->
<!--{!#system,common}-->
<div id="newslisttab">
    <ul>
        <li style="float:right"><a href="#{cms/newsite}#">新建站点</a></li>
        <li style="float:right"><a href="#{cms/addsite}#">添加栏目</a></li>
        <li style="float:right" class="active"><a>管理站点</a></li>
    </ul>
</div>
<form method="post" action="" enctype="multipart/form-data">
    <table cellspacing='0' cellpadding='0' width='100%' class='listtable'>
        <tr>
            <th width="5%">排序</th>
            <th width="5%">ID</th>
            <th>站点/栏目名称</th>
            <th width="8%">栏目类型</th>
            <th width="5%">访问</th>
            <th width="160">管理操作</th>
        </tr>
        <!--{loop $data $v}-->
        <tr>
            <td>${v[listorder]}</td>
            <td>${v[siteid]}</td>
            <td><span class="${v[style]}">
                {=str_repeat('　',count(explode(',',$v['parentids']))*2)}
                ${v[sitename]}
            </span></td>
            <td>{=$v['type'] == 0 ? '内部栏目' : ($v['type'] == 1 ? '<span class="sred">单网页</span>' : '<span class="sred">外部链接</span>')}</td>
            <td>访问</td>
            <td>
                <!--{if $v['type']>0 }-->
                    <span style="color:#CCCCCC">添加子栏目</span> |
                    <span style="color:#CCCCCC">子栏目</span> |
                    <a href='#{/cms/editsite/${v[parentid]}/${v[siteid]}}#'>修改</a>
                <!--{else}-->
                    <a href='#{/cms/addsite/${v[siteid]}}#'>添加子栏目</a> |
                    <!--{if $v['child']==1}-->
                        <a href='#{/cms/site/${v[siteid]}}#'>子栏目</a> |
                    <!--{else}-->
                        <span style="color:#CCCCCC">子栏目</span> |
                    <!--{/if}-->
                    <a href='#{/cms/editsite/${v[parentid]}/${v[siteid]}}#'>修改</a>
                    
                <!--{/if}-->
            </td>
        </tr>
        <!--{/loop}-->
        
    </table>
</form>
<!--{&footer}-->
<!--/*-->
</body>
</html><!--*/-->